<template>
  <div class="content">
          <el-table :data="viewLogs" style="width: 100%">
      <el-table-column prop="id" label="id">
      </el-table-column>
      <el-table-column prop="company_name" label="公司" >
      </el-table-column>
            <el-table-column prop="time" label="查看时间">
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
import { fetchStudentViewLog } from "api/remoteSearch"
import { mapGetters } from 'vuex';
export default {
    data(){
        return{
            viewLogs:[]
        }
    },
    computed: {
        ...mapGetters([
            'user_id',
            'roles'
        ])
    },
    mounted(){
        this.fetchViewLogs();
    },
    methods:{

        fetchViewLogs(){
            let vm =this;
            fetchStudentViewLog(vm.user_id).then(res=>{
                if(res.data.status=='success'){
                   vm.viewLogs=res.data.view_logs;
                }
            }).catch(errr=>{

            })
        }
    }
    
}
</script>

<style>
  
</style>
